package com.biconn.bigdata.jstrom.util;

import java.util.Map;

import com.google.common.collect.Maps;

/**
 * 通用常量信息
 * 
 * @author zhoutianqi
 */
public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
      * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
      * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
       * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
      * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
      * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
      * 自动去除表前缀
     */
    public static String AUTO_REOMVE_PRE = "true";

    /**
        * 当前记录起始索引
     */
    public static String PAGENUM = "pageNum";

    /**
      * 每页显示记录数
     */
    public static String PAGESIZE = "pageSize";

    /**
      * 排序列
     */
    public static String ORDERBYCOLUMN = "orderByColumn";

    /**
      * 排序的方向 "desc" 或者 "asc".
     */
    public static String ISASC = "isAsc";
    
    /**
     * kafka 医院信息topic
     */
    public static String SCRAPY_HOSPITAL_TOPIC = "kafka.scrapy.hospital";
    public static String SCRAPY_HOSPITAL_TOPIC_JSTORM_FIELD = "kafka.scrapy.hospital.field";
    //历史数据处理 start
    public static String SCRAPY_QUESTION_AND_ANSWER_TOPIC_TEST = "yujing.bdata.question.and.answer.test";
    //消息在jstorm中流转时使用的标记
    public static String SCRAPY_QUESTION_AND_ANSWER_TOPIC_JSTORM_FIELD = "kafka.scrapy.question.and.answer.field";
    public static String JSTORM_QUESTION_AND_ANSWER_COLLECTION = "jstorm_question_and_answer";
    public static String TAG_QUESTION = "question";
    public static String TAG_ANSWERS = "answers";
    public static String TAG_TOPIC_NAME = "question_and_answer_result_topic_to_kafka";
    public static String TAG_BUTO_KEY = "botu";
    //历史数据处理 end
    
    //问答spolt消费topic
    public static String QUESTION_AND_ANSWER_JSTORM_SPOUT_CONSUMER_TOPIC = "question.and.answer.jstorm.spout.consumer.topic";
    //问答数据jstorm流转field名称
    public static String SCRAPY_QUESTION_AND_ANSWER_TOPIC_JSTORM_REALTIME_FIELD = "kafka.scrapy.question.and.answer.realtime.field";
    //问答数据jstorm清洗后，生产的topic
    public static String QUESTION_AND_ANSWER_JSTORM_BOLT_DEALED_TOPIC = "question.and.answer.jstorm.bolt.dealed.topic";
    public static String QUESTION_AND_ANSWER_JSTORM_BOLT_DEALED_TOPIC_KEY = "question.and.answer.jstorm.bolt.dealed.topic.key";
    public static final Map<String,String> VALUE_MAP = Maps.newHashMap();
    
    static {
    	VALUE_MAP.put("xywy", "寻医问药");
    }

}
